home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TeX 1995 July
/
TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO
/
systems
/
web2c
/
web2c.yytext.help
< prev
next >
Wrap
Text File
|
1994-11-21
|
784b
|
25 lines
ftp.cs.umb.edu:pub/tex/web2c.yytext.help, 22nov94.
In web2c 6.1, you may get compiler errors something like this:
In file included from web2c.lex:4:
web2c.h:54: conflicting types for `yytext'
lex.yy.c:524: previous declaration of `yytext'
The solution is to change the line that says `DECLARE_YYTEXT' (or
something like that) in web2c-6.1/web2c/web2c.h to whatever matches your
lex program. Probably one of:
extern char yytext[];
extern unsigned char yytext[];
extern char *yytext;
extern unsigned char *yytext;
The way you can find out what is to run a trivial program through your
lex and search for yytext in the output:
echo %% | lex | grep yytext
This is what configure does, but it fails in some cases. This will be
fixed in the next release.